//封装与学生有关请求
import { request } from "@/utils/request"



//1、提交调课审核信息
export function submitApliInfoAPI(dataForm){
    return request({
        url:'/student/course/submit',
        method:'POST',
        data:dataForm
    })
}

//2、获取个人调课申请请求
export function getPerAppliAPI(user_id){
    return request({
        url:`/student/course/application/${user_id}`,
        method:'GET'
    })
}

//3、获取个人科目进度
export function getLearnProcessAPI(user_id){
    return request({
        url:`/student/learnProcess/subject/show/${user_id}`,
        method:'GET'
    })
}

//注册
export function studentRegisterAPI(dataForm){
    return request({
        url:'/student/register',
        method:'POST',
        data:dataForm
    })
}
//获取学生课表
export function getStudentScheduleAPI(user_id){
        return request({
            url:`/admin/course/schedule/studentShow/${user_id}`,
            method:'GET'
        })
}

//课程留言
export function sentCourseMessageAPI(data){
    return request({
        url:'/student/setCourseMessage',
        method:'POST',
        data:data
    })
}

//获取教练回复
export function getCoachMessageAPI(studentName){
    return request({
        url:`/student/getCoachMessage/${studentName}`,
        method:'GET'
    })
}

//获取模拟考试信息
export function getMockExaminationMessageAPI(mockStudentId){
    return request({
        url:`/student/getMockExaminationMessage/${mockStudentId}`,
        method:'GET'
    })
}

//获取考试信息
export function getExaminationMessageAPI(studentId){
    return request({
        url:`/student/getExaminationMessage/${studentId}`,
        method:'GET'
    })
}